import { USER_UPDATE } from '../actions/user'

const initialState = { data : [] };

const user = (state = initialState, action) => {
  
  switch (action.type) {

    case USER_UPDATE:
      return Object.assign({}, state, {
        data:action.data
      });

    default:
      return state
  }

}

export default user
